home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / orca / presentation_manager.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  3.5 KB  |  78 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. '''Provides the PresentationManager class for Orca.'''
  5. __id__ = '$Id: presentation_manager.py 3882 2008-05-07 18:22:10Z richb $'
  6. __version__ = '$Revision: 3882 $'
  7. __date__ = '$Date: 2008-05-07 14:22:10 -0400 (Wed, 07 May 2008) $'
  8. __copyright__ = 'Copyright (c) 2005-2008 Sun Microsystems Inc.'
  9. __license__ = 'LGPL'
  10.  
  11. class PresentationManager:
  12.     '''High level manager for reacting to user input events and
  13.     presenting information to the user.'''
  14.     
  15.     def __init__(self):
  16.         pass
  17.  
  18.     
  19.     def processKeyboardEvent(self, keyboardEvent):
  20.         '''Called when a key is pressed on the keyboard.
  21.  
  22.         Arguments:
  23.         - keyboardEvent: an instance of input_event.KeyboardEvent
  24.  
  25.         Returns True if the event should be consumed.
  26.         '''
  27.         return False
  28.  
  29.     
  30.     def processBrailleEvent(self, brailleEvent):
  31.         '''Called when keys or buttons are pressed on the Braille display.
  32.  
  33.         Arguments:
  34.         - brailleEvent: an instance of input_event.BrailleEvent
  35.  
  36.         Returns True if the command was consumed; otherwise False
  37.         '''
  38.         return False
  39.  
  40.     
  41.     def locusOfFocusChanged(self, event, oldLocusOfFocus, newLocusOfFocus):
  42.         '''Called when the visual object with focus changes.
  43.  
  44.         Arguments:
  45.         - event: if not None, the Event that caused the change
  46.         - oldLocusOfFocus: Accessible that is the old locus of focus
  47.         - newLocusOfFocus: Accessible that is the new locus of focus
  48.         '''
  49.         pass
  50.  
  51.     
  52.     def visualAppearanceChanged(self, event, obj):
  53.         """Called when the visual appearance of an object changes.
  54.         This method should not be called for objects whose visual
  55.         appearance changes solely because of focus -- locusOfFocusChanged
  56.         is used for that.  Instead, it is intended mostly for objects
  57.         whose notional 'value' has changed, such as a checkbox changing
  58.         state, a progress bar advancing, a slider moving, text inserted,
  59.         caret moved, etc.
  60.  
  61.         Arguments:
  62.         - event: if not None, the Event that caused this to happen
  63.         - obj: the Accessible whose visual appearance changed.
  64.         """
  65.         pass
  66.  
  67.     
  68.     def activate(self):
  69.         '''Called when this presentation manager is activated.'''
  70.         pass
  71.  
  72.     
  73.     def deactivate(self):
  74.         '''Called when this presentation manager is deactivated.'''
  75.         pass
  76.  
  77.  
  78.